package com.whut.rssReader.activity;

import com.whut.rssReader.entity.Constant;

import android.app.Activity;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

public class BaseActivity extends Activity{
	
	private SharedPreferences sharedPreferences;
	
	public void setPreferences(){
		SharedPreferences.Editor editor = sharedPreferences.edit();
		editor.putBoolean(Constant.ISFIRST, true);
		editor.commit();
	}
	
	public SharedPreferences getSharedPreferences(){
		return PreferenceManager.getDefaultSharedPreferences(this);
	}
	
	

}
